package com.bizzard.system.mapper;

import com.bizzard.system.domain.Role;
import com.bizzard.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Bao
 * @since 2022-06-11
 */
public interface RoleMapper extends BaseMapper<Role> {

    void delRoleMenuByRoleId(Long id);

    void delRolePermissionByRoleId(Long id);

    void delEmployeeRoleByRoleId(Long id);

    void addRoleMenu(@Param("id") Long id, @Param("menus") List<Long> menus);

    void addRolePermissions(@Param("id") Long id, @Param("permissions") List<Long> permissions);
}
